package com.wang.cloudstorage.db;

import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

public interface DatabaseClient {
	public void setSchema(String schema);
	public void setHost(String host);
	public void setPort(int port);
	public void setUserName(String userName);
	public void setPassword(String password);
	
	public void Connect();
	public void close();
	public void insert(Object command, String scope);
	public void update(Object command, Object searchQuery, String scope);
	public List<JSONObject> select(Object searchQuery, String scope) throws JSONException;
	public List<JSONObject> selectAll(String scope) throws JSONException;
	public void delete(Object whereMap, String scope);
}
